package gewu.suleju.sevice.imp;
import gewu.suleju.dao.iml.IHouseCommentDao;
import gewu.suleju.dao.iml.IUserDao;
import gewu.suleju.model.pojo.HouseComment;
import gewu.suleju.model.pojo.User;
import gewu.suleju.sevice.IHouseCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Optional;


@Service
public class HouseCommentServiceImp implements IHouseCommentService {
    @Autowired
    IHouseCommentDao iHouseCommentDao;
    @Autowired
    IUserDao iUserDao;
    //查找房子评论
    @Override
    public List<HouseComment> findHouseCommentByHouseInforId(Integer id) {
        return iHouseCommentDao.findHouseCommentByHouseInforId(id);
    }
    //查找评论的用户
    @Override
    public User findUserById(Integer id) {
        return iUserDao.findUserById(id);
    }


}
